package com.example.demo.Service;

import com.example.demo.DAO.StudentDAO;
import com.example.demo.Student.Student;

import java.sql.SQLException;
import java.util.List;

public class StudentService {
    private StudentDAO studentDAO = new StudentDAO();

    public List<Student> getStudentByPage(int pageNum) throws SQLException {
        return studentDAO.getStudentsByPage(pageNum);
    }

    public int getTotalCount() throws SQLException {
        return studentDAO.getTotalCount();
    }
}
